<script type="text/javascript">
	$(function() {
		var redirect="";
		$(".deleteBoton").click(function() {
			redirect = $(this)[0].href;
			$("#deleteWindow").dialog('open');
			return false;
		})	
				
		$("#deleteWindow").dialog({
			bgiframe: true,
			resizable: false,
			autoOpen: false,			
			height:140,
			modal: true,
			overlay: {
				backgroundColor: '#000',
				opacity: 0.5
			},
			buttons: {
				'Borrar': function() {
					$(this).dialog('close');
					location.href=redirect;
					return false;
					
				},
				Cancel: function() {
					$(this).dialog('close');
					return false;
					
				}
			}
		});
	});
</script>


<div id="deleteWindow" style="display:none"; title=__('action_delete',true)>
<p> <?php __('msg_configuration_delete') ?></p>
</div>

<div class="kt-g1">
		<div class=" kt-right">
	   		<ul class="lst-tabs">
	   			    <li id="icon-view" class="active"> <span class="icon"></span> <?php echo $html->link(__('configurations_view',true),$ruta_admin.'/view');?> </li>	
	   		   		<li id="icon-new"> <span class="icon"></span> <?php echo $html->link(__('configurations_new',true),$ruta_admin.'/add');?> </li>	    				
	    			<li id="icon-configuration"> <span class="icon"></span> <?php echo $html->link(__('configurations_list',true),$ruta_admin.'/');?> </li>	    				
			</ul>	  
		</div>
</div>


<div class="kt-md kt-md-content">
<div class="hd">
	<h2> <?php echo __('configurations_title_view'); ?> <strong>  <?php echo $configurations['Ktconfiguration']['name'] ?> </strong></h2>
</div> 
<div class="bd lst-form">
<table class="lst-info"> 
	<tr class="form-field"> 
		<th> <?php echo __('name'); ?></th>
		<td><?php echo $configurations['Ktconfiguration']['name'] ?></td>
	</tr>	
	
	<tr class="form-field"> 
		<th> <?php echo __('directory'); ?></th>
		<td><?php echo $configurations['Ktconfiguration']['directory'] ?></td>
	</tr>
	
	<tr class="form-field"> 
		<th> <?php echo __('hosts'); ?></th>
		<td><?php echo $configurations['Ktconfiguration']['hosts'] ?></td>
	</tr>
	
	<tr class="form-field"> 
		<th><?php echo __('database'); ?></th>
		<td><?php echo $configurations['Ktconfiguration']['database'] ?></td>
	</tr>
		
	<tr class="form-field"> 
		<th><?php echo __('actions') ?> </th>
		<td>
			<?php echo $html->link(__('action_edit',true), $ruta_admin."edit/".$configurations['Ktconfiguration']['id']); ?>
			<?php echo $html->link(__('action_delete',true), $ruta_admin."delete/".$configurations['Ktconfiguration']['id'], array('class' => 'deleteBoton')); ?>
			<?php echo $html->link(__('action_select',true), $ruta_admin."configuration/".$configurations['Ktconfiguration']['id']); ?>					
		</td>
	</tr> 
</table>
 <?php if ($configurations['Ktconfiguration']['id']==$id_configuracion){ ?>
   <p> <?php echo __('configurations_active'); ?></p>
 <?php } ?>
</div>
<div class="ft">
<p>	<?php echo $html->link(__('comeback',true), $ruta_admin); ?></p>
</div>
</div> 